<h3><a href="{:url('article/article_list')}" class="actionBtn add">返回列表</a>添加新闻</h3>

<form action="" method="post" enctype="multipart/form-data">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tbody>
        <tr>
            <td width="90" align="right">文章名称</td>
            <td>
                <input type="text" name="title" value="" size="80" class="inpMain">
            </td>
        </tr>
        <tr>
            <td align="right">热门</td>
            <td> <input type="checkbox" name="ishot"/> </td>
        </tr>

        <tr>
            <td align="right">文章分类</td>
            <td>
                <select name="cate_id">
                    <option value="0">未分类</option>
                    {volist name="cates" id="vo"}
                    <option value="{$vo.id}"> {$vo.cate_name}</option>
                    {/volist}
                </select>
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">文章详情</td>
            <td>
                <!-- KindEditor -->
                <link rel="stylesheet" href="/static/js/kindeditor/themes/default/default.css">
                <link rel="stylesheet" href="/static/js/kindeditor/plugins/code/prettify.css">
                <script charset="utf-8" src="/static/js/kindeditor/kindeditor.js"></script>
                <script charset="utf-8" src="/static/js/kindeditor/lang/zh_CN.js"></script>
                <script charset="utf-8" src="/static/js/kindeditor/plugins/code/prettify.js"></script>
                <script>
                    KindEditor.ready(function (K) {
                        var editor1 = K.create('textarea[name="content"]', {
                            cssPath: '/static/js/kindeditor/plugins/code/prettify.css',
                            uploadJson: '/static/js/kindeditor/php/upload_json.php',
                            fileManagerJson: '/static/js/kindeditor/php/file_manager_json.php',
                            allowFileManager: true,
                            afterCreate: function () {
                                var self = this;
                                K.ctrl(document, 13, function () {
                                    self.sync();
                                    K('form[name=example]')[0].submit();
                                });
                                K.ctrl(self.edit.doc, 13, function () {
                                    self.sync();
                                    K('form[name=example]')[0].submit();
                                });
                            }
                        });
                        prettyPrint();
                    });
                </script>
                <!-- /KindEditor -->
                <div class="ke-container ke-container-default" style="width: 780px;"></div>
                <textarea id="content" name="content" style="width: 780px; height: 400px; display: none;"
                          class="textArea"></textarea>
            </td>
        </tr>
        <tr>
            <td align="right">缩略图</td>
            <td>
                <input type="file" name="image" size="38" class="inpFlie">
                <img src="/static/images/icon_no.png"></td>
        </tr>
        <tr>
            <td align="right">关键字</td>
            <td>
                <input type="text" name="keywords" value="" size="50" class="inpMain">
            </td>
        </tr>
        <tr>
            <td align="right">简单描述</td>
            <td>
                <input type="text" name="description" value="" size="50" class="inpMain">
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="hidden" name="token" value="7e4a88fb">
                <input type="hidden" name="image" value="">
                <input type="hidden" name="id" value="">
                <input name="submit" class="btn" type="submit" value="提交">
            </td>
        </tr>
        </tbody>
    </table>
</form>